package edu.gdkm.web.controller;

import edu.gdkm.service.UserinfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

@Controller
public class UserinfoController {
    @Autowired
    UserinfoService userinfoService;
    @RequestMapping("/showOrders")
    @ResponseBody
    public Map<String,Object> showOrders(String username) {
        return userinfoService.showOrders(username);
    }

}
